{% extends "base.html" %}
{%block hellw%}
		<div class="main" style="width:90%">
			<div class="main-content">
				<div class="container-fluid">
					<div class="row">
						<div class="col-md-12">
							<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">用户</h3>
								</div>
<button type="button" class="btn btn-default" style=' height: inherit;width: inherit;float: left;margin-left: 2%;'><a href="/adduser">添加</a></button> 
					<div class="panel-body">
									<table class="table table-striped">
										<thead>
											<tr>
												<th>用户名</th>
												<th>用户邮箱</th>
										<th>最后登录时间</th>
										<th>手机号</th>
										<th>管理</th>
										<th>状态</th>
										<th>密码</th>
										</tr>
					</thead>
						<tbody style="text-align: initial;">
						{% for user in user_list %}
							<tr >
						<td>{{user.username}}</td>
						<td>{{user.email}}</td>
						<td>{{user.last_logtime}}</td>
							<td>{{user.iphone}}</td>
					{%if user.leves==0 %}
<td><a href="/shezhi/{{user.id}}"><input type="button" class="btn btn-danger"value='设置管理' style=" height: inherit;width: inherit;"></a></td>{% end %}
			{%if user.leves==1 %}
	<td><a href="/quxiao/{{user.id}}"><input type="button" class="btn btn-danger" value="取消管理" style=" height: inherit;width: inherit;">	</a>{% end %}</td>
						{%if user.status==1%}
	<td><a href="/jiedong1/{{user.id}}"><input type="button" class="btn btn-danger" value="解冻" style=" height: inherit;width: inherit;"></a></td></td>
				{% end %}
				{%if user.status==0 %}
<td><a href="/dongjie1/{{user.id}}"><input type="button" class="btn btn-danger" value="冻结" style=" height: inherit;width: inherit;"></a></td>
				{% end %}
				</td>
<td><a href="/chongzhi/{{user.id}}"><input type="button" class="btn btn-danger" value="重置" style=" height: inherit;width: inherit;"></a></td></td>
									</tr>{% end %}
										</tbody>
									</table>
								{%end%}